<style type="text/css">
@import "/scripts/jquery.datepick.package-3.7.5/css/jquery.datepick.css";
</style>

<script type="text/javascript" src="/scripts/common.js"></script>
<script src="/scripts/jquery.fcbkcomplete.js" type="text/javascript" charset="utf-8"></script>
<link type="text/css" href="/styles/ui-lightness/jquery-ui-1.8.16.custom.css" rel="stylesheet" />
<link type="text/css" href="/styles/styles.css" rel="stylesheet" />

<link href="/styles/timepicker.css" rel="stylesheet" type="text/css" />

<script type="text/javascript" src="/scripts/jquery.datepick.package-3.7.5/js/jquery.datepick.js"></script>
<script type="text/javascript" src="/scripts/timepicker.js"></script>

<link rel="stylesheet" href="/styles/thickbox.css" />
<script type="text/javascript" src="/scripts/thickbox.js"></script>
<table border="0" cellspacing="0" cellpadding="0" align="center">
  <tr>
        <td valign="top"><div class="Col">
	<tal:block tal:content="structure php: this.partial('myactivity/myactivity.html')"/>
	</div>
	</td>
	<td valign="top"><div class="Col">
<div class="ModuleBlock">
<h1>
<label>Tasks</label>
<div><a href="/tasks/settings/task-settings"  ><img src="/images/SettingsIcon.png" border="0" alt="Settings" title="Settings" align="top" class="SetIcon"/></a>
<a id="create" href="javascript:void(0);" onclick="createTask();"><img src="/images/CreateAddIcon.png" alt="Create Task" width="15" height="15"  border="0"  align="top" class="SetIcon" title="Create Task"/></a>
<a href="#"><img src="/images/pie-chartIcon.png" alt="Activity Summary" width="14" height="14"  border="0"  align="top" class="SetIcon" title="Activity Summary"/></a></div>
<div class="wid186"><input type="text" value="search" name="serValue" id="serValue" onfocus="clearField(this.id,'search');" onblur="addValuetoField(this.id,'search');" /><a href="javascript:void(0);"><img onclick="showSearchSection()" src="/images/ModSearchIcon.png" border="0" class="SerImg" /></a></div>
</h1>
<div class="clear"></div>
<ul class="ModuleMenu">
<li><a href="/tasks/index/task-list/1" class="<?php echo $ctx->personalactive; ?>">Personal</a> </li>
<li><a href="/tasks/index/task-list/2" class="<?php echo $ctx->assigntoactive; ?>">Assigned To</a> </li>
<li><a href="/tasks/index/task-list/3" class="<?php echo $ctx->assignbyactive; ?>">Assigned By</a> </li>
</ul>
<!-- Create task popup  -->

<!--  Create task popup  -->
<div class="clear"></div>
<div id="topPagerId1" class="paginat"></div>
<div class="clear"></div>
<div class="ModuleHig">
<div class="blkCont" id="listAlbums">
	<tal:block tal:content="structure php: this.partial('/index/task-view-list.html')"/>
	</div>
</div>
<div id="downPagerId1" class="paginat"></div>
<div class="clear"></div>
</div>
</div></td>
	<td valign="top"><div class="Col">
<tal:block tal:omit-tag="" tal:content="structure php: this.action('index','activity','tasks')" />
</div></td>
<td valign="top">
<div class="ColBanner">
<div class="ModuleBlock">
<img src="/images/Gads.gif" /><img src="/images/Gads.gif" /></div>
</div></td>
  </tr>
</table>
<!-- Chat Window  -->
<div class="Chatbox">
<div class="Fleft pad_t2"><img src="images/ChatAviIcon.png" /></div>
<div class="Fleft fontWht pad_115"><strong>Harinath</strong></div>
<div class="Fright"><a href="#" class="ChatBt"><strong>X</strong></a></div>
<div class="Fright"><a href="#" class="ChatBt txt18"><strong>-</strong></a></div>
</div>
<script type="text/javascript">
//<![CDATA[
	pagination1 = new Array();
	pagination1['currentPage'] = "<?=$ctx->getTasks['currentPage']?>";
	pagination1['resultsPerPage'] = "<?=$ctx->getTasks['resultPerPage']?>";
	pagination1['pages'] = "<?= $ctx->getTasks['pages']?>";  
	pagination1['pager'] = '<?=$ctx->getTasks["pager"]?>';
	pagination1['resultsCount'] = "${getTasks/resultsCount}" ;
	
	var Params='${params}';
	var ParamsDup='';
	//alert(pagination['resultsCount']+'  '+Params);
	var requestUrlDup = "/tasks/index/pagination/<?php echo $ctx->type; ?>/";
	//var requestUrlDup = "/user/myhome/ajax-news/0/";
	$(document).ready(function () {
	    setPagination1(pagination1['resultsCount'],'topPagerId1','downPagerId1','','');
	});
	function showSearchSection(){
	serVale = $('#serValue').val();
	//alert(serVale);
	ajaxPagerDup(1,serVale);
}
function createTask()
{
	tb_show('New Task','/tasks/index/create-task?&height=350&width=650','');
}
function assignTo()
{
	tb_show('New Task','/tasks/index/create-task?&height=350&width=650','');
}
function showDiv(type)
{
	if(type == 'r')
	{
		$('#rec').addClass("active");
		$('#sent').removeClass("active");
		$('#sentId').hide();
		$('#recId').show();
	} else {
		//alert(type);
		$('#rec').removeClass("active");
		$('#sent').addClass("active");
		$('#sentId').show();
		$('#recId').hide();
	}

}
 function clearField(id,itemvalue)
{
	if($("#"+id).val()==itemvalue){
		$("#"+id).val('');
	}
}
function addValuetoField(id,itemvalue)
{
	if($("#"+id).val()==''){
		$("#"+id).val(itemvalue);
	}
}
//]]>
</script>
